<?php
/**
 * Created by JetBrains PhpStorm.
 * User:Mihail Markitan
 * Date: 10/30/11
 * Time: 11:32 PM
 */
 ?>

<div style="clear:both;">
<?php if($_GET['r']=='invoices/create'): ?>
<?php $this->widget('zii.widgets.CMenu',array(
    'items'=>array(
        array('label'=>'Invoice','url'=>'#'),
        array('label'=>'Technicians','url'=>'#'),
        array('label'=>'Equipment','url'=>'#'),
        array('label'=>'Documents','url'=>'#')

    ),
    'id'=>'tab-menu',
    'htmlOptions'=>array(
        'class'=>'tabs tabs-with-summary',
        'onclick'=>"alert('Save invoice please');"
    ),
    'submenuHtmlOptions'=>array('class'=>'tabs tabs-with-summary'),
));?>
<?php else: ?>
<?php $this->widget('zii.widgets.CMenu',array(
    'items'=>array(
        array('label'=>'Invoice','url'=>array('invoices/update','invoice'=>$model->invoice)),
        array('label'=>'Technicians','url'=>array('invoiceEmp/index',
                                                  'invoice'=>$model->invoice)),
        array('label'=>'Equipment','url'=>'#'),
        array('label'=>'Documents','url'=>array('invoiceDoc/index',
                                                'invoice'=>$model->invoice))

    ),
    'id'=>'tab-menu',
    'htmlOptions'=>array(
        'class'=>'tabs tabs-with-summary',
    ),
    'submenuHtmlOptions'=>array('class'=>'tabs tabs-with-summary'),
));?>
<?php endif; ?>
</div>
